<%@ taglib uri="http://waffle.codehaus.org" prefix="w" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<html>

<head>
    <title>${projeto}</title>
    <link rel="stylesheet" type="text/css" href="css/theme.css" />
	<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>

<script language="javascript" type="text/javascript" src="js/cookie.js"></script>

<script language="javascript" type="text/javascript">
	function checkCookie() {
		login = getCookie('usuario.login');
		if (login != null) {
			document.getElementById('usuario.login') = login;
		}
	}

	function sf() {
		document.getElementById('usuario.login').focus();
	}
</script>

<c:set var="language" value="en_US" scope="session"/>

<c:if test="${empty param.idioma}">
	<fmt:setLocale value="pt_BR" scope="session"/>
</c:if>
<c:if test="${not empty param.idioma}">
	<fmt:setLocale value="${param.idioma}" scope="session"/>
</c:if>

<body onload="sf();" >

<div id="header" style="background:url(img/bg_blue.jpg) repeat-x top;">
	<br>
	<h2>${projeto}</h2>	
	<br>
	<br>
</div>

<br>

<div id="container">
	<div id="wrapper">
		<div id="content">
			<div id="box">
            	<h3 id="adduser"><fmt:message key="lbl.efetuar_login"/></h3>
                <form id="form" name="form" action="usuario.efetuaLogin.logic">
                	<fieldset id="personal">
                    	<legend><fmt:message key="lbl.dados_login"/></legend>
                        <label for="login"><fmt:message key="lbl.login"/> : </label> 
                        <input name="usuario.login" id="usuario.login" type="text" tabindex="1"/>
                        <br/>
                        <label for="senha"><fmt:message key="lbl.senha"/> : </label>
                        <input name="usuario.senha" id="usuario.senha" type="password" tabindex="2"/>
                        <br/>
                    </fieldset>
                    <div align="center">
	                	<input id="button" type="submit" value="<fmt:message key="lbl.entrar"/>"/> 
	                    <input id="button" type="reset" value="<fmt:message key="lbl.limpar"/>"/>
                    </div>
            	</form>
        	</div>
    	</div>       
	</div>
</div>
</body>
</html>